package com.ruoyi.system.service;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import java.util.Objects;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.ShipmentOrderDetail;
import com.ruoyi.system.dto.ShipmentOrderDetailDTO;
import com.ruoyi.system.vo.ShipmentOrderDetailVO;

/**
 * 出库单详情Service接口
 * 
 * @author ruoyi
 * @date 2024-12-12
 */
public interface IShipmentOrderDetailService 
{
    /**
     * 查询出库单详情
     * 
     * @param id 出库单详情主键
     * @return 出库单详情
     */
//    public ShipmentOrderDetail selectShipmentOrderDetailById(Long id);

    /**
     * 查询出库单详情列表
     * 
     * @param shipmentOrderDetail 出库单详情
     * @return 出库单详情集合
     */
    public List<ShipmentOrderDetailDTO> selectShipmentOrderDetailList(ShipmentOrderDetail shipmentOrderDetail);

    public List<Map<String, Object>> selectShipmentOrderList(ShipmentOrderDetail shipmentOrderDetail);

    /**
     * 新增出库单详情
     * 
     * @param shipmentOrderDetail 出库单详情
     * @return 结果
     */
    public int insertShipmentOrderDetail(ShipmentOrderDetail shipmentOrderDetail);

    /**
     * 修改出库单详情
     * 
     * @param shipmentOrderDetail 出库单详情
     * @return 结果
     */
    public int updateShipmentOrderDetail(ShipmentOrderDetail shipmentOrderDetail);

    /**
     * 批量删除出库单详情
     * 
     * @param ids 需要删除的出库单详情主键集合
     * @return 结果
     */
    public int deleteShipmentOrderDetailByIds(Long[] ids);

    /**
     * 删除出库单详情信息
     * 
     * @param id 出库单详情主键
     * @return 结果
     */
    public int deleteShipmentOrderDetailById(Long id);

    /**
     * 修改出库详情的状态
     * @param shipmentOrderDetail
     * @return
     */
    AjaxResult updateShipmentOrderDetailState(ShipmentOrderDetailVO shipmentOrderDetail) throws SQLException;

    int selectStatussChuku(int status);
}
